package com.ruan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.common.Result;
import com.ruan.pojo.*;
import com.ruan.pojoExt.BusinessTripExt;

import java.math.BigDecimal;
import java.util.List;

public interface BusinessTripService extends IService<BusinessTrip> {

    List<BusinessTripExt> selectLeaveDetailByPhoneAndDate(LTODetailCondition ltoDetailCondition);

//    List<BusinessTrip> getAudit();

    void agreed(Integer id,Integer adminId);

    void refuse(Integer id, Integer adminId);


    Result appForTrip(BusinessTrip businessTrip);

    IPage<BusinessTrip> getSelfTrip(int currentPage, int pageSize, QuerySelfAttendanceCondition querySelfAttendanceCondition);

    void cancelTrip(Integer id);

    void setActualCost(Integer id, BigDecimal actualCost);

    Result getActualCost(Integer id);

    void addBusinessTrip(Integer adminId, BusinessTrip businessTrip);
}
